home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
language
/
modula.zoo
/
_defn_mathcom.def
< prev
next >
Wrap
Text File
|
1988-04-26
|
838b
|
31 lines
DEFINITION MODULE MathCom;
(* Version 1.2 of 94/07/08 *)
(* Common to MathLib0 and MathLib1 *)
CONST
pi = 3.1415926535897932384626434;
twoopi = 2.0 / pi;
pio2 = pi / 2.0;
pio4 = pi / 4.0;
sqrt2 = 1.4142135623730950488016887;
PROCEDURE frexp (value: REAL; VAR exp: INTEGER): REAL;
(* Returns the real mantissa x of value and an integer exp
such that value = x * 2 ** exp *)
PROCEDURE ldexp (value: REAL; exp: INTEGER): REAL;
(* Returns value * 2 ** exp *)
PROCEDURE modf (value: REAL; VAR int: INTEGER): REAL;
(* Returns the positive fractional part of value and (by int)
the integer part *)
PROCEDURE sarctan (arg: REAL): REAL;
(* Reduces its positive argument to the range {0 .. 0.414}
and calls xatan *)
END MathCom.